home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / Z-SQL-METHOD_ADD.STX < prev    next >
Encoding:
Text File  |  2000-06-30  |  1.6 KB  |  45 lines

  1. Z SQL Method - Add: Create new Z SQL Method
  2.  
  3. Description
  4.  
  5.     This view allows you to create a new Z SQL Method.
  6.  
  7. Controls
  8.  
  9.     'ID' -- Specifies the id of the sql method.
  10.  
  11.     'Title' -- Specifies the title of the sql method. 
  12.  
  13.     'Connection id' -- Select list that specifies the database
  14.       connection on which the sql method operates.
  15.  
  16.       **Note:** If you change the ID of your DB Connection object, all
  17.       the Z SQL Methods using this connection object will *NOT* be
  18.       updated. You have to update all Methods one by one.
  19.  
  20.     'Arguments' -- Allows you to specify a list of arguments that the sql 
  21.       method takes. The arguments should be separated by spaces or
  22.       a newline in the field. Furthermore, you can specify the 
  23.       type of the argument as well as a default 
  24.       value.
  25.  
  26.       **Example:** 'title:string="No title!"', where 'title' is the
  27.       attribute, 'string' is the type of the attribute, and '"No
  28.       title!"' is the default value.
  29.  
  30.     'Query template' -- 
  31.  
  32.       Text area that specifies the SQL query that will execute when
  33.       this method is called.  The query template can contain DTML
  34.       markup to tailor the SQL statement to the arguments.  There are
  35.       three additional DTML tags called 'SQLVAR', 'SQLTEST', and
  36.       'SQLGROUP'. Please refer to their references get more details on
  37.       how to use them in your SQL statement.
  38.  
  39.       **Note:** the SQL statement need not be a 'SELECT' query, it may
  40.       be any valid SQL statement including an INSERT or UPDATE.
  41.  
  42.       **Important:** You can have several SQL statements in one ZSQL
  43.       Method.
  44.  
  45.